﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Media;

namespace TeBigCommonUI.Common
{
    public static class BrushHelper
    {
        public static Brush CreateLinearGradientBrush(Color baseColor, double fromBrightness, double toBrightness, double angle)
        {
            var fromColor = ColorHelper.Brightness(baseColor, fromBrightness);
            var toColor = ColorHelper.Brightness(baseColor, toBrightness);

            return new LinearGradientBrush(fromColor, toColor, angle);
        }
    }
}
